<h2><%=t('devise.registrations.link')%></h2>

<% form_for resource_name, resource, :url => registration_path(resource_name) do |f| -%>
  <%= f.error_messages %>
  <ul>
  <li><%= f.label :name, 'Nome completo' %></li>
  <li><%= f.text_field :name %></li>

  <li><%= f.label :email %></li>
  <li><%= f.text_field :email %></li>

  <li><%= f.label :cpf %></li>
  <li><%= f.text_field :cpf, :alt => :cpf %></li>

  <% f.fields_for :info_attributes do |info_f| %>
  <li><%= info_f.label :funcao, 'Cargo/Função' %></li>
  <li><%= info_f.text_field :funcao %></li>
  <% end %>

  <li><%= f.label :password %></li>
  <li><%= f.password_field :password %></li>

  <li><%= f.label :password_confirmation %></li>
  <li><%= f.password_field :password_confirmation %></li>

  <li><label>Digite as palavras abaixo:</label></li>
  <li><%= recaptcha_tags(:display => {:theme => 'clean', :lang => 'pt'}, :ssl => !Rails.env.development?).html_safe %></li>

  <li><%= f.submit 'Criar conta' %></li>
  </ul>
<% end -%>

<%= render :partial => "shared/devise_links" %>

